#CC = CC
#CC = g++-3.2
#CC=g++ -fopenmp -O3 
CC=g++ -fopenmp -O2 
#CC=g++ -O3 
#CC=g++ -Wall -pg -O3
#CC=g++ -Wall -ggdb -O3
#CFLAGS = -O
#CFLAGS = -Wall -g
#CFLAGS = -O -g
#CFLAGS = -O3 -pg
#CFLAGS = -O3
#CFLAGS = -Wall -O3
#CFLAGS = -DNDEBUG -O3

MFLAGS =
#LINKFLAGS = --static

ifeq (solaris, $(OSTYPE))
  MFLAGS = -D_NEED_REDEFINE_RAND_MAX_
endif


.SUFFIXES: .o .cpp

HEADERS = Config.h FuncTimer.h Graph.h Utilities.h 

SOLVER_SRCS = Config.cpp Dependency.cpp Graph.cpp HLS.cpp FuncTimer.cpp Operation.cpp Utilities.cpp 
SOLVER_OBJS = $(SOLVER_SRCS:.cpp=.o)



HLS:   $(SOLVER_OBJS) 
	  $(CC) $(LINKFLAGS) $(CFLAGS) $(MFLAGS) $(SOLVER_OBJS)  -o HLS

.cpp.o:
	$(CC) $(CFLAGS) $(MFLAGS) -c $<

clean:
	rm -f *.o 

all: HLS 





